#ifndef BHXJGLSPEEDOMETER_H
#define BHXJGLSPEEDOMETER_H
#include "BHXJControls_global.h"
#include "BHXJGLHelper/bhxjglshader.h"
#include "BHXJGLHelper/bhxjglmodel.h"
#include "BHXJGLHelper/bhxjglinclude.h"
#include<vector>
#include "BHXJRegularModel/bhxjglpie.h"
#include "BHXJRegularModel/bhxjglcolumn.h"
#include "BHXJGLHelper/bhxjglttf.h"
#include<QString>


class BHXJCONTROLS_EXPORT BHXJGLSpeedometer:public BHXJGLModel<BHXJGLFUN*>
{
public:
    BHXJGLSpeedometer();
    virtual ~BHXJGLSpeedometer()override;

    void Init(BHXJGLFUN *arg) override;
    void Paint(const BHXJGLPaintParam &p) override;

    float Speed(){return _Speed;}
    void setSpeed(float value){_Speed=value;}

    glm::vec3 viewPos(){return _viewPos;}
    void setviewPos(glm::vec3 value){_viewPos=value;}


protected:
    float _Speed=0;
    glm::vec3 _viewPos{0};
    BHXJGLTTF *ttf;
};

#endif // BHXJGLSPEEDOMETER_H
